<template>
	<el-container>
		<el-main class="nopadding">
			<scTable ref="table" :apiObj="apiObj" row-key="recordId" stripe remoteSort remoteFilter>
				<el-table-column label="#" type="index" width="50"></el-table-column>
				<el-table-column label="调动人员" prop="userName" width="100"></el-table-column>
				<el-table-column label="文件标题" prop="title" width="150" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column label="调动类型" prop="transferTypeName" width="100"></el-table-column>
				<el-table-column label="调动前单位名称" prop="compName" width="200"></el-table-column>
				<el-table-column label="调动后单位名称" prop="transferComp" width="200"></el-table-column>
				<el-table-column label="调动日期" prop="transferTime" width="150"></el-table-column>
				<el-table-column label="生效日期" prop="startTime" width="150"></el-table-column>
				<el-table-column label="操作" fixed="right" align="right" width="100">
					<template #default="scope">
						<el-button-group>
							<el-button text type="primary" size="small" @click="table_show(scope.row, scope.$index)">查看</el-button>
						</el-button-group>
					</template>
				</el-table-column>
			</scTable>
		</el-main>
	</el-container>
	<recordDetails v-if="dialog.detailsSave" ref="detailsDialog" @closed="dialog.detailsSave=false"></recordDetails>
</template>

<script>
import recordDetails from '@/views/hr/personfile/transfer/details'
export default {
	name: 'My Transfer Manage',
	components: {
		recordDetails,
	},
	data() {
		return {
			dialog: {
				detailsSave:false,
			},
			apiObj: this.$API.hr.hrTransfer.getMyHrPersonnelTransferList,
		}
	},
	mounted() {
	},
	methods: {
		//查看
		table_show(row) {
			this.dialog.detailsSave = true
			this.$nextTick(() => {
				this.$refs.detailsDialog.open('setting').setData(row)
			})
		},
		//本地更新数据
		handleSaveSuccess() {
			this.$refs.table.refresh()
		}
	}
}
</script>

<style>
</style>
